Congestion control in a network device having a buffer circuit

ABSTRACT

Each packet of the present invention is assigned a priority level. The current data packet flow rate is detected. This data packet flow rate is quantized into at least one data rate level. The current buffer circuit depth is determined as is the priority associated with the current data packet. The probability that the current packet is either dropped or used is determined by using the current data packet service flow rate, the data packet priority, and the current buffer circuit depth.

FIELD OF THE INVENTION

[0001] The present invention relates generally to data flow control. Particularly, the present invention relates to control of congestion in a buffer circuit.

DESCRIPTION OF THE RELATED ART

[0002] In order to provide more service to their subscriber base, cable television companies are offering access to the Internet through their cable modem (CM) boxes. The benefits in using the cable companies instead of a dial-up Internet Service Provider is multiple services under one bill, always-on access, and, in some cases, higher speed access.

[0003] In order to provide their customer's with Internet access, the cable companies use some of the 50-800 MHz spectrum typically set aside for their television channels to provide the bandwidth required for the data transfers. A typical cable system has the bandwidth to provide 100 television channels to its subscribers. Each NTSC television signal requires 6 MHz of bandwidth.

[0004] In order for a cable subscriber to access the Internet through their cable television provider, the subscriber must have a CM. The CM is similar to the Cable Modem Termination System (CMTS) equipment required at the cable company's headquarters, except for the greater size required at the headquarters. This is to accommodate a greater number of signals than is required by the home modem.

[0005] The home CM box and the CMTS use well-known Ethernet frames to communicate between them. The cable system, however, uses a different modulation scheme, Quadrature Amplitude Modulation (QAM), than is normally used in an Ethernet scheme.

[0006] Using the QAM modulation, the downstream (from the cable company equipment to the home CM) data rate is in the range of 30-40 Mbps for each 6 MHz channel. This can accommodate between 500 and 2000 subscribers. The more subscribers that the cable company tries to fit in that spectrum, the lower the bandwidth available for each subscriber.

[0007] The upstream data flow is different and more complex. In the past, cable companies did not have to worry about providing bandwidth for the customer to communicate in the upstream direction. Pay-per-view movies and sports events, however, required this ability. The cable companies, therefore, set aside the 5-42 MHz spectrum to allow the home CM to communicate in the upstream direction. The cable companies now use this 5-42 MHz spectrum to provide the necessary upstream access to the Internet from the home CM.

[0008] Cable companies, as well as other Internet Service Providers, are currently introducing Quality of Service (QoS) to Internet access. The current Internet routing model of “best effort” service now provided to all users, packets, and traffic flows is being replaced with services that differentiate between packets.

[0009] Some current Internet access schemes to increase QoS incorporate different priority levels for data packets. High priority packets will be routed with low latency and low jitter while low priority packets may experience more delay and jitter. The throughput needs of each application determine the priority associated with its corresponding traffic flows. It is likely that advanced application programs in the future will dynamically change the priority of traffic flows to match the varying needs of the user throughout the entire duration of the user's session.

[0010] Another method presently used by cable companies to introduce higher quality Internet access service is to change the techniques presently used in dropping all overflow packets, increasing data throughput, and decreasing data throughput. If packets are dropped in a synchronized fashion, this synchronization of drops can lead to an inefficient use of the cable system bandwidth. Attempts at de-synchronization include the Random Early Discard (RED) scheme, which randomly drops user packets based on the current buffer depth within storage buffers in the cable data system.

[0011]FIG. 1 illustrates a typical prior art CMTS block diagram. The CMTS typically is comprised of a cable interface card (101) to provide the interface signals and modulation to the signals transmitted to the home modem. An Ethernet card (110) interfaces the CMTS to the Internet by providing appropriate timing, control, and data signal formats for the Internet. A buffer circuit (105) between the cable interface card (101) and Ethernet card (110) stores data in both the upstream and downstream directions when the processing in either the cable interface card or the Ethernet card is slower than the incoming data.

[0012] The Random Early Discard scheme samples the depth (amount of memory space used) of the buffer (105) and randomly drops packets to prevent the buffer from overflowing. Using this scheme, a cable subscriber may not lose any data or may lose a lot of data, depending on a purely random occurrence.

[0013] In the future, since all packets will not be passed using the same priority levels, all packets will not be billed the same charges. A subscriber who is paying more for his service will expect higher data throughput and less data loss than someone paying substantially less. There is a resulting need for an improved process and system for determining which data packets to drop before the buffer becomes overloaded. One technique that performs this task is the Weighted Random Early Discard (WRED) scheme, which randomly drops user packets based on current buffer depths and based on the priority of the packet. Packets associated with high-paying customers will be given higher priority and experience a lower probability of packet drops than packets associated with low-paying customers.

[0014] Although the use of the Weighted Random Early Discard scheme serves to differentiate users based on their priorities (which is usually related to their payment), it does not differentiate between two different customers who are assigned to the same priority level. In particular, the Weighted Random Early Discard scheme does not take into account the customer's recent utilization of the bandwidth. As a result, two customers that are both assigned to the same priority might be utilizing the bandwidth in two very different ways. One might have been actively using the bandwidth a lot in the last few minutes, and the other might not have been using the bandwidth at all during the last few minutes. Because of his or her low bandwidth activity levels in recent minutes, it seems fair that the second customer should be given precedence over the “recently greedy” first customer if both customers start to transmit packets simultaneously. The ability to store the activity state of each customer and use that activity state in the calculation of packet dropping probabilities in addition to the priority and the current packet buffer depths would therefore seem to be a useful and fair manner of controlling the flow of packets in a data communications system.

SUMMARY OF THE INVENTION

[0015] The present invention encompasses a process for providing data packet flow congestion control in a data network that has a buffer circuit. Each packet of the present invention is identified as belonging to a specific service flow, where a service flow is a series of packets that share something in common. The shared attributes could, for example, include a common source IP address and a common destination IP address within the packet headers of all of the packets within the service flow. A packet stream will typically contain many packets from many different service flows inter-mixed together. When each of these packets arrives at a network node, it must then be assigned a priority level. In the preferred embodiment, the priority level is based on the price a subscriber paid for their Internet access service.

[0016] The process begins by detecting the current data packet rate through the buffer circuit for the service flow associated with the arriving packet. This service flow's data packet rate is quantized into at least one activity level. In the preferred embodiment, the process uses four different activity levels for data rate. Each level is determined by a comparison to predetermined thresholds.

[0017] The current buffer circuit depth is then determined as is the priority associated with the current data packet. The current packet is either dropped or used depending on the current data packet flow rate, the data packet priority, and the current buffer circuit depth.

BRIEF DESCRIPTION OF THE DRAWINGS

[0018]FIG. 1 shows a block diagram of a typical prior art cable modem termination system.

[0019]FIG. 2 shows a block diagram of the cable modem termination system apparatus of the present invention.

[0020]FIG. 3 shows a matrix of settings for congestion control on the Cable Interface circuit and the Ethernet Interface circuit.

[0021]FIG. 4 shows a plot of the probability of dropping a packet versus the average buffer depth in accordance with the matrix of FIG. 3.

[0022]FIG. 5 shows a flowchart of the buffer congestion control process of the present invention.

[0023]FIG. 6 shows a block diagram of a system incorporating the cable modem apparatus of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0024] The present invention provides congestion control of any data network circuit having a buffer. By tracking the data packet flow rate, data packet priority and buffer status, the packets can be dropped before they overflow the buffer.

[0025]FIG. 2 illustrates the preferred embodiment cable modem termination system (CMTS) apparatus of the present invention. While the present invention will be described as applying to a cable modem, the congestion control can be applied to any data network comprising a buffer circuit.

[0026] The CMTS apparatus of FIG. 2 is comprised of a cable interface (201) that is coupled to a buffer circuit (205). The buffer circuit (205) is coupled to an Ethernet interface (210). In the preferred embodiment, each of the individual circuits (201, 205, and 210) reside physically on separate circuit boards. In alternate embodiments, any circuits having substantially the same function can reside on one circuit board or even one integrated circuit. In other words, the present invention is not limited to three separate circuit boards.

[0027] The cable interface (201) is responsible for interfacing the CMTS to the home cable modem apparatus. The cable interface (201) also provides the functions of modulation and demodulation.

[0028] The cable interface circuit is comprised of a downstream packet flow path and an upstream packet flow path. The downstream packet flow path is comprised of a data throughput monitor (220) that is coupled to a flow limiter (215). The data throughput monitor (220) has an input that is coupled to the buffer circuit (205) from which the data packets flow and a feedback from the upstream path. The feedback from the upstream path is to allow a first CM to talk with other CMs. The data throughput monitor (220) has the task of determining the rate of data packet flow.

[0029] In the preferred embodiment of the CMTS, the downstream data packet flow rate is typically either 30 or 40 Mbps for each 6 MHz channel, using QAM techniques. Alternate embodiments use other flow rates. The cable company decides which data packet flow rate depending on the outcome desired by the company. The lower data rate is less susceptible to noise while the higher data rate can include more data per unit of time for the customers.

[0030] The data packet flow rate signal is fed into the flow limiter (215). This signal controls the flow limiter function. If the flow is greater than a predetermined level, T_(max), the data packet flow can be limited. The flow limiter (215) reduces the data rate by dropping packets until the flow is reduced to below T_(max).

[0031] Another input to the flow limiter (215) is the “limiting type” input. This control input is set by the cable company depending on how strict they wish a customer to adhere to the rules. If the “limiting type” input is set to “soft-limiting”, the flow limiter (215) allows the data rate to go above the set data rate by a predetermined amount without dropping any packets.

[0032] Some cable companies may strictly limit a customer to T_(max). In this case, the “limiting type” control input is set to “hard-limiting”. If the data rate goes over the set hard limit, the flow limiter (215) drops any packets that force the customer to exceed T_(max). The output of the flow limiter (215) is coupled to the cable that runs to the customers' cable modems.

[0033] The output of the flow limiter (215) is input to the modulator (255). This block (255) performs the QAM needed to transmit the data to the CMs.

[0034] The upstream data path is comprised of a demodulator and filter (260) that converts the QAM signal into data bits in order to be processed by the other blocks in the upstream path. The demodulated data bits are input to a data throughput monitor (225) that is coupled to the upstream port from the customer's CM. This data throughput monitor (225) has the same functionality as the downstream monitor (220) of monitoring the data rate but in the upstream direction to the Internet.

[0035] In the preferred embodiment, the upstream data rate can be in the range of 320 kb to 10.24 Mbps. Alternate embodiments use other rates.

[0036] The upstream data throughput monitor (225) is coupled to a flow limiter (230). This flow limiter has similar functionality to the flow limiter (215) in the downstream path. The upstream path flow limiter (230) has the data rate input from the data throughput monitor (225) as well as the “limiting type” control input that, in the preferred embodiment, is set to either “hard-limiting” or “soft-limiting” depending on the cable company rules. As in the downstream flow limiter (215), the upstream flow limiter, depending on the “limiting type” input, drops all packets that force the customer to exceed T_(max).

[0037] The upstream path further comprises a congestion control block (235) that is coupled to the upstream data path out of the flow limiter (230). The data packets from the upstream data path flow through the congestion control block (235) to the buffer circuit (205). The function of the congestion control block (235) is to drop packets when the buffer depth is reaching a maximum point. By dropping the packets before they reach the buffer, the buffer will not overflow.

[0038] In order to accomplish the task of congestion control, the congestion control block (235) has control inputs that are used to determine when to drop packets and which packets to drop. In the preferred embodiment, these control inputs include the data rate signal from the upstream data throughput monitor (225), a buffer depth signal from the buffer (205), and a priority signal.

[0039] The data rate signal from the upstream data throughput monitor (225), as described above, quantizes the data rate and feeds that value to the congestion control block (235). The buffer circuit depth signal from the buffer circuit (205) instructs the congestion control block (235) as to the depth of the buffer. In other words, if the buffer (205) is 75% full, the buffer depth signal instructs the congestion control block (235) of this.

[0040] The priority signal that is input to the congestion control block (235) informs the congestion control of the priority of each packet. This is important in determining which packets to drop.

[0041] A group of packets is assigned a priority based on the customer's level of service plan. If the customer has signed up for the basic service plan and paid the smallest fee for the most basic service, his packets are assigned a low priority. This priority is embedded in a packet identification that is assigned to the group of packets and is decoded when the group of packets enters the cable interface.

[0042] If the customer has signed up for the premium service plan with the cable company, his packets are assigned the highest priority. If the customer has signed up for any service plans that are in between the premium and the basic plans, this priority is also assigned to each packet. As described before, the priority is added to the packet identification for a particular group of packets.

[0043] A customer may also decide to dynamically change his service level for a given session. In this case, different packet groups from that particular customer will have different priorities assigned to different packet identifications.

[0044] As described subsequently in other figures, the congestion control block (235) of FIG. 2 uses the priority assigned to a group of packets to determine how to process that particular group of packets. The output of the congestion control block is input to the buffer circuit's upstream data flow input.

[0045] The buffer circuit (205) stores the packets until the Ethernet circuit (210) has time to process that packet. The packets are fed from the buffer circuit (205) to the Ethernet circuit (210) as more processing time is freed up.

[0046] The downstream path of the Ethernet circuit (210) is comprised of a data throughput monitor (250) that is coupled to the connection to the Internet. This monitor (250) provides substantially the same function as the previously described data throughput monitors on both the upstream and downstream paths.

[0047] The data packets from the Internet flow from the data throughput monitor (250) to the Ethernet's circuit flow limiter (245). This flow limiter (245) has substantially the same functionality as the above described flow limiters. This flow limiter also has the same inputs as described previously: the quantized data rate and the “limiting type” control input.

[0048] The data packets flow from the flow limiter (245) to the congestion control block (240). As in the upstream congestion control block (235), the Ethernet's downstream congestion control block (240) has the three control inputs to determine which packets to drop: the quantized data rate, the buffer depth signal, and the packet priority signal. The congestion control block then drops a particular packet based on these control signals.

[0049] The downstream data flows from the congestion control block to the buffer circuit (205). The buffer circuit (205) stores the packets until the cable interface circuit has the processing time to work on additional packets.

[0050] The buffer circuit (205) is comprised of 128 MB of RAM, in the preferred embodiment. Alternate embodiments use other values of RAM or even other types of memory instead of RAM. The alternate types of memory include hard drives or other types of temporary memory.

[0051] Most of the functions illustrated in FIG. 2 may be implemented in various ways. These functions can be performed in software by a processor or multiple processors performing each function. Each function can also be implemented in discrete logic hardware, a digital signal processor, or some other form of programmable logic.

[0052]FIG. 3 illustrates a matrix of settings for congestion control of the buffer circuit. These settings are an example of the preferred embodiment settings that were determined experimentally in field tests. Alternate embodiments use other settings.

[0053] The matrix illustrates the priority and the data flow rate. The priority indicates the bandwidth for which the customer has paid. The data flow rate indicates the bandwidth that the customer is actually using.

[0054] The matrix of FIG. 3 is comprised of columns under the current data flow rate across the top of the matrix. The data rate, in the preferred embodiment, is segmented into four different rates that are labeled needy, normal, greedy, and super-greedy. These data rates are based on the minimum bandwidth for which the customer signed up (T_(min)) and the maximum data rate that a customer requested during a session (T_(max)).

[0055] The data rate is considered “needy” when the rate is between 0 and T_(min). If the data rate is between T_(min) and T_(max), this rate is considered normal. When the data rate goes above some mid-rate (T_(mid)) and T_(max), this rate is labeled greedy. When a customer requests a data rate beyond T_(max), the rate is considered super-greedy.

[0056] These labels and respective data rates are for illustration of the operation of the preferred embodiment only. Alternate embodiments use other labels for other data rate thresholds.

[0057] Referring again to the matrix of FIG. 3, the rows are labeled with six different priority levels that have been assigned to each data packet as the Current Packet Priority. The highest priority level is designated Priority 0. The lowest priority level is designated Priority 5. The mid-level priorities are labeled Priority 1, Priority 2, Priority 3, and Priority 4 in increasing priority levels.

[0058] The blocks that make up the intersection of each column (current data flow rate) and row (current packet priority) is comprised of three values that are further illustrated in the plot of FIG. 4 to be discussed subsequently. The upper number in each block represents the minimum threshold value (in percent) of the average buffer depth (amount of memory used). This value is subsequently referred to as MIN_(th). The middle value in each block is the maximum threshold (in percent) of the average buffer depth. This value is subsequently referred to as MAX_(th).

[0059] In the preferred embodiment, MINth and MAXth are average values. Alternate embodiments may use instantaneous values of the buffer depth for these thresholds.

[0060] The third value in each block is the probability of a packet being dropped. In the illustrated example, the probability of a packet being dropped is 0.1 and is referred to as P_(a). This value for P_(a) is a typical value and will be different for other embodiments.

[0061] The “needy” data rate column ensures that T_(min) is guaranteed. The “super-greedy” column ensures that T_(max) is a pseudo-hard limit. This limit is set by the cable company and may or may not be adhered to in limiting a customer's request for additional bandwidth. This is mostly a function of the buffer depth. If the buffer depth is low and customers are above their paid bandwidth limit, their packets will not be dropped. However, once the buffer approaches its limit and customers are above their paid bandwidth limit, their packets will be dropped to keep them from going over T_(max).

[0062] The values of the matrix of FIG. 3 were determined by expanding on the concepts in Weighted Random Early Discard (WRED). WRED is similar to the RED technique described above except it assigns a high priority (lower packet loss probability) to some data packets and a low priority (higher packet loss probability) to other data packets. For example, voice may be assigned a high priority while email may be assigned a low priority. In a congestion situation, the lower priority packets are discarded before the higher priority packets.

[0063] If WRED were used to determine the values in the blocks of the FIG. 3 matrix, all of the entries across a given row would be the same. If RED were used to determine the values, all of the entries would be the same. Using an extension of WRED, different values can be determined for each row of the matrix.

[0064] Each block of the matrix of FIG. 3 determines the appearance of the plot illustrated in FIG. 4. The plot of FIG. 4 has the average buffer depth running along the x-axis and the probability of dropping a packet (P_(drop)) running along the y-axis.

[0065] This plot illustrates that as the average buffer depth approaches MIN_(th), the probability of a packet being dropped is 0%. This is due to the fact that the buffer depth is not yet high, so there is no need to drop any packets.

[0066] As the average buffer depth increases along the x-axis and approaches MAX_(th), the probability of a packet being dropped increases to P_(a). A typical value of P_(a), as illustrated in the matrix of FIG. 3, is 0.1. When the average buffer depth exceeds MAX_(th), all packets are dropped with a probability of 1.0.

[0067] As a safety mechanism to keep the buffer circuit from overflowing, once the instantaneous buffer depth goes beyond 99%, all packets are dropped. The priority of the packet is irrelevant.

[0068] The process used by the present invention is illustrated in FIG. 5. The process begins with the CM registering with the cable system according to the Data Over Cable Service Interface Standard (DOCSIS).

[0069] The CM and the CMTS go through a ranging process (step 501) to get the CM on a channel that is acceptable to the CMTS. The ranging step (step 501) also includes determining the power level required by the CMTS from the CM.

[0070] The CM next goes through the registration process (step 505) to get the information required to be an Internet Protocol (IP) host, such as the IP address, from the Dynamic Host Configuration Protocol (DHCP) server. During this registration process, the CM also downloads, from the a Trivial File Transfer Protocol (TFTP) server, the service level and other service information for that particular CM.

[0071] The process of the present invention enables the customer to change his service level temporarily and dynamically, depending on the bandwidth he needs at the moment. This can be accomplished by the customer informing the CMTS of the additional bandwidth request (step 510).

[0072] The CMTS then informs the CM of the new service level (step 515). As the customer is using the service, the CMTS is monitoring the data flow rate (step 520) so that it knows the amount of bandwidth the customer is using in relation to the bandwidth for which the customer has paid.

[0073] The data packet rate is quantized to one of four levels (step 525), depending on the rate required by the customer's use. These levels, as discussed above, include needy, normal, greedy, and super-greedy.

[0074] Since the current packet priority is in the header of each packet, the process determines the current packet priority (step 530) by reading the packet header. The process also determines the average buffer depth (step 535) to determine the amount of memory remaining in the buffer.

[0075] By using the data rate, current packet priority, and average buffer depth, the process accesses the proper block of the matrix of FIG. 3 to determine the probability that a packet should be dropped (step 540).

[0076]FIG. 6 illustrates a system block diagram of the present invention. This system is comprised of the CMTS (601) that is coupled to the Internet (610). The CMTS is located at the cable company headquarters.

[0077] The CMTS is coupled to a larger number of CMs (612-614). For purposes of clarity, only three CMs are shown. However, as described above, the CMTS may communicate with thousands of CMs, depending on how the cable company set up the system.

[0078] In summary, the process and apparatus of the present invention provides congestion control of a buffer circuit. By tracking the depth of the buffer circuit, the data rate, and the priority of each packet, packets can be selectively dropped prior to overflowing the buffer. This also allows the customer to dynamically change his service level depending on his bandwidth needs for each Internet access session. By embedding the new priority in each data packet, each data packet can be dropped or processed based on its own priority. 

We claim:
 1. A method for providing data packet congestion control for a data network having a buffer circuit, each data packet comprising a priority, the method comprising the steps of: determining the particular service flow associated with the data packet, detecting a current data packet flow rate through the data network for the particular service flow associated with the data packet; quantizing the data packet flow rate into at least one level; detecting a buffer circuit depth; determining the priority associated with a current data packet; and processing the current packet in response to the current data packet flow rate, the data packet priority, and the current buffer circuit depth.
 2. The method of claim 1 wherein the step of detecting a buffer circuit depth includes detecting an instantaneous value for the buffer circuit depth.
 3. The method of claim 1 wherein the step of detecting a buffer circuit depth includes detecting an average value for the buffer circuit depth.
 4. The method of claim 1 wherein the step of processing includes determining a probability of dropping a data packet using the current data packet flow rate, the data packet priority, and the current buffer circuit depth to access, from a matrix of plots indicating the probability of dropping the data packet, each of the plots within the matrix of plots indicating the packet drop probability as a function of the buffer circuit depth.
 5. The method of claim 1 wherein the step of processing includes determining a probability of dropping a data packet using the current data packet flow rate, the data packet priority, and the current buffer circuit depth to access, from a matrix of plots indicating the probability of dropping the data packet, each of the plots within the matrix of plots indicating the packet drop probability as a function of the buffer circuit depth with a plots that have the same shape and parameters as the plots used for Random Early Discard congestion control techniques.
 6. The method of claim 1 wherein the step of quantizing includes quantizing the data packet flow rate into four different flow rates.
 7. The method of claim 6 wherein the four predetermined flow rates are determined by comparing the service flow's data packet flow rate with a minimum data rate threshold, a maximum data rate threshold, and a mid-level data rate threshold.
 8. The method of claim 1 wherein the step of detecting the buffer circuit depth includes determining the percentage of utilized memory within the buffer circuit.
 9. The method of claim 1 wherein the step of determining the priority associated with a current data packet includes the step of reading the header of the current data packet to determine the priority.
 10. The method of claim 1 wherein the step of determining the particular service flow associated with the data packet includes the step of reading the header of the current data packet to determine the associated service flow.
 11. A method for adjusting the data rate of data packets transiting a data network, the system comprising: determining a maximum data rate of data packet flow allowed through the data network; monitoring the data rate of the data packets through the data network; determining a predetermined priority of a data packet; determining remaining memory in a memory circuit; if the data packet has a low priority and the data rate is greater than the maximum data rate, dropping the data packet; and if the data packet has a high priority and the data rate is greater than the maximum data rate, processing the data packet.
 12. The method of claim 11 and further including the steps of: determining a minimum data rate of data packet flow allowed through the data network; and if the data rate is less than the minimum data rate, always processing the data packet.
 13. An apparatus for controlling the congestion of a buffer circuit, having a depth indication signal, in a data network, the apparatus comprising: the data monitor coupled to the data network input and accepting a stream of data packets, the data rate monitor outputting the stream of data packets and a control signal indicating the service flow's data packet flow rate; a flow limiter having a data input coupled to the stream of data packets output from the data rate monitor, the flow limiter also having a control input coupled to the control signal from the data rate monitor, the flow limiter outputting the stream of data packets; and a congestion controller having a data input coupled to the stream of data packets from the flow limiter, the congestion controller also having a first control input coupled to the control signal from the data rate monitor, a second control input coupled to the depth indication signal, and a third control input coupled to a priority signal, the congestion controller controlling the rate at which the stream of data packets enters the buffer circuit in response to the first, second, and third control signals by dropping predetermined data packets from the stream of data packets.
 14. The apparatus of claim 13 wherein the flow limiter further includes a limiting type control input for selectively changing an allowed data packet flow rate.
 15. The apparatus of claim 13 wherein the data rate monitor is coupled to a plurality of cable modems.
 16. A cable modem interface for interfacing a cable modem termination system to a plurality of cable modems, the cable modem termination system having a buffer circuit for temporarily storing input data, the buffer circuit having a buffer depth indication signal that indicates a depth of the buffer circuit, the interface comprising: a downstream data path having a data stream input and a modulated output, the downstream data path comprising: a first data throughput monitor coupled to the data stream input, the first data throughput monitor tracking a data rate of the data stream through the first data throughput monitor and generating a first data rate signal in response to the tracked data rate; a first flow limiter, coupled to the first data throughput monitor, for limiting the data rate of the data stream, the flow limiter having a control input coupled to the first data rate signal; and a modulator, coupled to the first flow limiter, for modulating the data stream for transmission to the plurality of cable modems; and an upstream data path comprising: a demodulator, coupled to the plurality of cable modems, for demodulating an input modulated signal into an input data bit stream comprising a plurality of packets; a second data throughput monitor for monitoring a data flow rate of the input data bit stream and generating a second data rate signal; a second flow limiter, coupled to the second data throughput monitor, for limiting the data flow rate of the input data bit stream, the second flow limiter coupled to the second data rate signal; a congestion controller, coupled to the second flow limiter, the congestion controller having a plurality of control inputs, a first control input coupled to the buffer depth indication signal, a second control input coupled to the second data rate signal, and a third control input coupled to a priority signal indicating a priority of a group of packets, the congestion controller controlling the number of packets entering the buffer circuit in response to the plurality of control inputs.
 17. The cable modem interface of claim 16 and further including a limiting type input to the first flow limiter for determining adherence of the cable modem interface to a set of cable modem rules.
 18. The cable modem interface of claim 16 and further including a limiting type input to the second flow limiter for determining adherence of the cable modem interface to a set of cable modem rules.
 19. A method for a cable modem to communicate with a cable modem termination system, the cable modem being assigned a predetermined service level, the cable modem termination system comprising a buffer circuit for temporarily storing data packets, the method comprising the steps of: the cable modem and the cable modem termination system performing a ranging step to determine a channel and power level for communication that is acceptable to the cable modem termination system; the cable modem registering with the cable modem termination system; the cable modem requesting additional bandwidth beyond the predetermined service level; communicating data packets from the cable modem to the cable modem termination system; determining a priority of the data packets; determining an average depth of the buffer circuit; determining a service flow associated with the data packets; determining a flow rate of the service flow associated with the data packets; and processing the data packets in response to the average depth of the buffer circuit, the flow rate, and the priority.
 20. The method of claim 19 wherein the step of processing includes dropping packets in response to the average depth of the buffer circuit, the flow rate, and the priority.
 21. The method of claim 19 wherein the step of registering includes the cable modem termination system assigning an Internet protocol address to the cable modem.
 22. A cable modem comprising: a buffer circuit comprising: a buffer depth indication signal that indicates the amount of memory not being used; a cable modem interface comprising: a plurality of data rate monitors, a first monitor for monitoring a data packet flow rate in an upstream path and a second monitor for monitoring the data packet flow rate in a downstream path, each monitor generating a flow rate indication signal; a plurality of flow limiters, a first flow limiter, coupled to the first data rate monitor, limiting the flow rate in the upstream path and a second flow limiter, coupled to the second data rate monitor, limiting the flow rate in the downstream path, both flow limiters acting in response to the respective flow rate indication signal; and a congestion controller, coupled to the first flow limiter, for controlling the flow of data into the buffer circuit in response to the flow rate indication signal, the buffer depth indication signal, and a packet priority signal generated from the data packets; and an Ethernet interface comprising: a data rate monitor, coupled to the Internet, for monitoring the data packet flow rate in the downstream path, the data rate monitor generating a flow rate indication signal; a flow limiter, coupled to the data rate monitor, for limiting the flow rate in the downstream path, the flow limiter acting in response to the flow rate indication signal; and a congestion controller, coupled to the flow limiter, for controlling the data packets flowing into the buffer circuit in response to the flow rate indication signal, the buffer depth indication signal, and a packet priority signal generated from the data packets. 